require('./detail.css');
import {
    cancel
} from './ajax';
$(function () {
    $("#cancelOrder").click(function () {
        cancel(_orderID, (res) => {
            if (res.rel == 1) {
                $.toast(res.msg);
                location.href=_myOrder;
            } else {
                $.toast(res.msg);
            }
        });
    })
});
